import request from '@/utils/request'

// 批量新增关联
export function batchInsert(data) {
  return request({
    url: '/system/al/batchInsert',
    method: 'post',
    data: data
  })
}

// 查询查询关联列表
export function listAl(query) {
  return request({
    url: '/system/al/list',
    method: 'get',
    params: query
  })
}

// 查询查询关联详细
export function getAl(id) {
  return request({
    url: '/system/al/' + id,
    method: 'get'
  })
}

// 新增查询关联
export function addAl(data) {
  return request({
    url: '/system/al',
    method: 'post',
    data: data
  })
}

// 修改查询关联
export function updateAl(data) {
  return request({
    url: '/system/al',
    method: 'put',
    data: data
  })
}

// 删除查询关联
export function delAl(id) {
  return request({
    url: '/system/al/' + id,
    method: 'delete'
  })
}

// 删除查询关联
export function removeByArticleId(data) {
  return request({
    url: '/system/al/removeByArticleId',
    method: 'delete',
    data: data
  })
}
